package com.foo.common.base.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@ComponentScan(value = "com.foo", includeFilters = {
		@Filter(type = FilterType.REGEX, pattern = ".*service"),
		@Filter(type = FilterType.REGEX, pattern = ".*dao") })
@PropertySource("classpath:startComponents.properties")
@ImportResource("classpath:applicationContext.xml")
@EnableTransactionManagement
public class CoreConfig {


}
